Repository navigation
[0.9.0] Season seats: setAsideSeasonBlock, retrieveSeasonBlock, releaseSeasonBlock, inventoryMode - #14
Merged
Conversation
…s, event sales and event series
…wire tests, events seriesKey
…he p2a-api review
…tle (2.16c) createEventSeries takes fromEventKey: an event already set up becomes the first date under its own key and every other date is a copy of it; name and chartKey are then left out. Every date of a series carries the series' plain name. Matches seatmap slice 2.16c.
Adds releaseSeasonLapsedOffers (POST /v1/seasons/{key}/renewal-offers/release-lapsed, no body, header replay, 202 with the job). retrieveSeasonHostedRenewals pages with cursor and limit (1-500) and answers nextCursor, and listSeasonRenewalOffers pages the same way (1-100). createSeasonRenewalOffers answers 201 {offers} for 100 contracts or fewer and 202 {job, batchId} above that. The bring-across (createSeasonHolderImportFromSeason) answers 202 with a holder_import job above 100 holders. Renewal emails take up to 20,000 offer ids; above that, 422 too_many_offer_ids.
…e_abandoned (p2b) The public API changes in p2b (b88ed794e..ee7df2921): Seasons.dateCancelVoidJobId names the date_cancel_void job a date cancel starts (season.ticket.voided reason date_cancelled); Seasons.holderImportRowsPerCall sizes a createSeasonHolderImport call by its dates, 2 to 50 (a call over it answers 422 invalid_rows with maxRows); updateSeason's singleTicketDates can carry jobRefused, and an exact retry is not applied twice; createEventSeries documents 409 create_abandoned.
…b audit) updateEventSeries sends only the prices that change: each date keeps its own price for every category or tier left out. A season's null transfer or return cut-off means the club default from Settings > Ticket site, or until the date starts when the club has none. Holder transfers and returns through the secret key are not stopped by the club's customer switches; cut-offs still apply.
…part C) A date its season cancelled never opens again: moving its sales to testable or live, or reopening it, answers 409 season_date_cancelled, and an event series "sales on" leaves it closed as a failed item of the job (season_date_cancelled; not in failedDates). A cancelled date can't be moved, postponed, replaced or marked as taken place: 409 performance_cancelled.
pietechsolution
force-pushed
the
navin/season-block-0.10.0
branch
from
November 10, 2026 02:38
7f57132 to
98d54a4
Compare
…seSeasonBlock; Seasons.isDateLeavePending for the 202 date-leave answer. No version bump: publish only once the phase 4 API is on production
pietechsolution
force-pushed
the
navin/season-block-0.10.0
branch
from
November 10, 2026 05:48
98d54a4 to
5e995c5
Compare
Merged
pietechsolution
marked this pull request as ready for review
November 11, 2026 10:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Season seats for
io.seatlayer:seatlayer-java, part of the 0.9.0 release. One release, 0.9.0, carries season 2a (#13) and this PR (decided 10 Nov).maven-metadata.xmllatest and release, checked 10 Nov).season-2a-serverso it builds on the season-2a methods. Its name still says 0.10.0, from before the decision: renaming a head branch would close the PR.pom.xmlis untouched. A tag push publishes all the way to Maven Central (autoPublish), and a Central version can never be replaced or deleted.What it adds
Built to
docs/season-block-2026-11-08/contract.mdin the app repo (§2, §5, §6, and §8 "Amendments, 9 Nov"). Method names are the operationIds.Methods (the
Map<String, Object>params style of the other season methods):seasons.setAsideSeasonBlock(seasonKey, Map.of("expectedRevision", …, "keepForSingleTickets", …), idempotencyKey);seasons.retrieveSeasonBlock(seasonKey);seasons.releaseSeasonBlock(seasonKey, Map.of("expectedRevision", …, "scope", …, "eventKeys", …, "at", …, "reason", …), idempotencyKey).Both writes use header replay, so an Idempotency-Key is generated when the key is
null, as onrefundSeasonPerformance. Each write answers thejoband theblock; follow the job withretrieveSeasonBulkJob.inventoryMode(block|per_hold) oncreateSeasonandupdateSeason, documented on both and sent only when given.blockopts the season into season seats; the default staysper_hold. Every Season answer carries it.The 202 while a date leaves every season seat (
createSeasonAmendmentcancel,markSeasonPerformancePast):Seasons.isDateLeavePending(answer). The return types are unchanged.Webhooks:
Webhookssends any event name, soseason.block.readyandseason.block.releasedneed no change. The CHANGELOG names them.Errors: no new classes or constants. The new codes come through
SeatLayerExceptionand its subclasses withcode()(§8 item 4). The CHANGELOG lists them, now including every code the 3 calls andinventoryModecan send (SEASON_BLOCK_API_BUSINESS_ERRORSin the app repo).Docs: a "Season seats" section at the end of the README's "Fixed Renewable Seasons": opt in with
inventoryMode, set the seats aside, follow the job, read the block, release to single sale (now or at a set time), the two webhook names, the 202 guard, refusals throughSeatLayerExceptionwithcode(), and partner seats staying out of the block.CHANGELOG: the "Next: 0.9.0" section. The version PR joins it with the season-2a section under
## 0.9.0.Files changed
CHANGELOG.md,README.md,src/main/java/io/seatlayer/Seasons.java,src/test/java/io/seatlayer/SeasonPlatformTest.java,src/test/java/io/seatlayer/SeasonTest.java(5 files, +309 −13).Checks
mvn -B verify(compile, tests, and the main/sources/javadoc jars under-Xdoclint:all,-missingwithfailOnError), re-run 10 Nov on this commit: green on Java 17, 90/90.SeatLayerConflictExceptionwith itscode().inventoryModeon create and update.javac) against this commit's jar.season-phase4-java-compat/Compat.javain the app session's notes; nothing is sent.repo1.maven.org/…/seatlayer-java-0.8.0.jar, re-run 10 Nov)createSeasonAmendment, a Season answer carryinginventoryMode, and409 season_block_packagesonupdateSeason. The other 10 are n/a: 0.8.0 has neither the season-2a calls nor theseseason-2a-serverhead6b2689cinventoryModeand409 season_block_packagesmvn verify), including the 3 new calls and409 season_block_not_enabledRelease steps for the owner
main, with no tag.mainand retarget it tomain;mvn -B verifygreen; merge.Compat.javaagainst the Central 0.8.0 jar and againstmain's jar: both all PASS;completed, read, release withat, read the release job.<version>0.9.0</version>inpom.xml(never a-SNAPSHOT), and join the CHANGELOG's season-2a section ("Unreleased") and "Next: 0.9.0" under a dated## 0.9.0. Merge tomain.git tag v0.9.0 && git push origin v0.9.0.release.ymlrunsmvn -B verify, refuses if the tag and the pom disagree, then signs and uploads to the Central Portal, which publishes automatically.https://repo1.maven.org/maven2/io/seatlayer/seatlayer-java/maven-metadata.xmlreads0.9.0as<release>, and https://central.sonatype.com/artifact/io.seatlayer/seatlayer-java lists it (allow some minutes for search);io.seatlayer:seatlayer-java:0.9.0, then run the dev smoke from it.<release>can't be pointed back at 0.8.0. Publish nothing over it. Document the withdrawal in the CHANGELOG and the README, tell users to pin 0.8.0, and ship a fix as 0.9.1. A rollback also withdraws season-2a: both ship in 0.9.0.Failure modes
inventoryModewould be ignored. Step 5 waits for production, and on Central that order matters most: a published 0.9.0 stays forever.Seasons.isDateLeavePending: it would read the 202 body as the amendment. The README and the Javadoc point at the guard.inventoryMode(compat matrix). It can't call the 3 new routes.Open risks
/server-api/seasons/#season-seats), which goes live with paiteq/seatmap #2063. Until then the link lands on the top of the Seasons page.